home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kmdinulliterator.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  1.9 KB  |  50 lines

  1. //----------------------------------------------------------------------------
  2. //    filename             : kmdinulliterator.h
  3. //----------------------------------------------------------------------------
  4. //    Project              : KDE MDI extension
  5. //
  6. //    begin                : 02/2000       by Massimo Morin
  7. //    changes              : 02/2000       by Falk Brettschneider to create an
  8. //                           - 06/2000     stand-alone Qt extension set of
  9. //                                         classes and a Qt-based library
  10. //                           2000-2003     maintained by the KDevelop project
  11. //
  12. //    copyright            : (C) 1999-2003 by Massimo Morin (mmorin@schedsys.com)
  13. //                                         and
  14. //                                         Falk Brettschneider
  15. //    email                :  falkbr@kdevelop.org (Falk Brettschneider)
  16. //----------------------------------------------------------------------------
  17. //
  18. //----------------------------------------------------------------------------
  19. //
  20. //    This program is free software; you can redistribute it and/or modify
  21. //    it under the terms of the GNU Library General Public License as
  22. //    published by the Free Software Foundation; either version 2 of the
  23. //    License, or (at your option) any later version.
  24. //
  25. //----------------------------------------------------------------------------
  26.  
  27. #ifndef _KMDINULLITERATOR_H_
  28. #define _KMDINULLITERATOR_H_
  29.  
  30. #include "kmdiiterator.h"
  31.  
  32. template <class Item>
  33. class KMdiNullIterator : public KMdiIterator<Item> {
  34. public:
  35.    KMdiNullIterator() {};
  36.    virtual void first() {}
  37.    virtual void last() {}
  38.    virtual void next() {}
  39.    virtual void prev() {}
  40.    virtual bool isDone() const { return true; }
  41.    virtual Item currentItem() const {
  42.    /* should really never go inside here */
  43.    return 0;
  44.    }
  45. };
  46.  
  47. #endif // _KMDINULLITERATOR_H_
  48. // kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;
  49.  
  50.